﻿using Abp.Runtime.Validation;
using Camc.Quality.Dto;
using System;
using System.Collections.Generic;
using System.Text;

namespace Camc.Quality.StoreManagement
{
    public class InventorySelectInput : PagedAndSortedInputDto, IShouldNormalize
    {
        /// <summary>
        /// 退库单号
        /// </summary>
        public string InventoryNo { get; set; }

        /// <summary>
        /// 仓库ID
        /// </summary>
        public Guid? StoreId { get; set; }
        /// <summary>
        /// 盘点开始时间
        /// </summary>
        public DateTime? InventoryStartTime { get; set; }
        /// <summary>
        /// 盘点结束时间
        /// </summary>
        public DateTime? InventoryEndTime { get; set; }

        /// <summary>
        /// 盘点状态
        /// </summary>

        public InventoryState?InventoryState { get; set; }

        /// <summary>
        /// 盘点人员
        /// </summary>
        public long? InventoryPeopleId { get; set; }

        /// <summary>
        /// 物料类别
        /// </summary>
        public Guid? MaterialsNodeId { get; set; }

        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "CreationTime Desc";
            }
        }
    }
}
